package com.lxl.hadoop.sort;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

/**
 * @Author lixilin
 * @Date 2021/12/31 20:02
 * @Description
 */
public class SortReducer extends Reducer<FlowBean, Text,Text,FlowBean> {
    FlowBean v = new FlowBean();
    protected void reduce(FlowBean key, Iterable<Text> values,
                          Context context) throws IOException, InterruptedException {
        for (Text phone : values) {
            context.write(phone,key);
        }
    }
}
